#!/usr/bin/ksh

# Script name: trapsig.ksh

trap 'print "Control-C cannot terminate this script."' INT
trap 'print "Control- cannot terminate this script."' QUIT
trap 'print "Control-Z cannot terminate this script."' TSTP

print "Enter any string(type 'dough' to exit)."
while (( 1 ))
do
	print -n "Rolling ..."
	read string
	if [[ "$string" == "dough" ]]
	then
		break
	fi
done
print "Exitting normally"

